﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IFServerDLL;
using IFServerDLL.Model;
using IFServerDLL.Broker;
using HCY.CTP.DBShangZheng;
using IFServerDLL.DB;
using IFClientDLL.Calc;

namespace IFClientDLL
{
    public interface ITryIF
    {
        Guid UserID { get; }
        DBTableMarketDataZi DataInfo { get; }
        IMarketDataServer DataServer { get; }
        IClient Client { get; }
        MyCalcManager Calc { get; }
        void AddUserCommand(UserCommand cmd, Guid calcID);
        void AddMessage(MessageBase msg);
        
        event Action<MessageBase> OnMessage;
        void AddOrder(UserOrdBase ord);
        void CancelOrder(Guid orderID, Guid calcID);
    }
}
